<extend name="default/public/common" />
<block name="main">
    <div class="main">
        <div class="banner">
            <div class="container-fixed">
                <div class="banner-box">
                    <h2>项目大厅</h2>
                    <hr>
                    <p>在这里，你可以看到所有厂商发布的项目，每天都有新的项目在发布着。</p>
                </div>
            </div>
        </div>
        <div class="project">
            <ul class="project-classify">
                <li <if condition="$type eq '0'">class="active"</if>><a href="{:U('index/index',array('type'=>0))}">全部</a></li>
                <volist name="types" id="vo">
                    <li <if condition="$type eq $vo['id']">class="active"</if>><a href="{:U('index/index',array('type'=>$vo['id']))}">{$vo.title}</a></li>
                </volist>
            </ul>
            <div class="project-main">
                <div class="project-loading" style="display:block">
                    <span></span>
                    <span></span>
                    <span></span>
                    <span></span>
                    <span></span>
                </div>
                <div class="project-list">
                    <div class="container-fixed">
                        <div class="row">
                            <volist name="projects" id="vo">
                                <div class="col-xs-4">
                                    <div class="project-box">
                                        <if condition="$vo['ishot'] eq '1'"><div class="project-box-hot"></div></if>
                                        <div class="project-box-num">No.{$vo.id}</div>
                                        <div class="project-box-pic">
                                            <a href="{:U('project/detail',array('id'=>$vo['id']))}" target="_blank">
                                                <img src="{$vo.cover|getImgidpath}" alt="">
                                            </a>
                                        </div>
                                        <h4><a href="{:U('project/detail',array('id'=>$vo['id']))}" target="_blank">{$vo.title}</a></h4>
                                        <p>{$vo.mintroduce}</p>
                                        <div class="project-box-detail">
                                            <div class="detail-time">
                                                期限：{$vo.start_time} - {$vo.end_time}
                                            </div>
                                            <div class="detail-level">
                                                <span>奖金等级：</span>
                                                <span class="level-stars text-warning">
                                                    <for start="1" end="$vo['grade']+1">
                                                        <i class="icon icon-star"></i>
                                                    </for>
                                                </span>
                                            </div>
                                            <switch name="vo.status">
                                                <case value="1"><a href="{:U('project/detail',array('id'=>$vo['id']))}" target="_blank" class="detail-btn btn-on">进行中</a></case>
                                                <case value="2"><a href="{:U('project/detail',array('id'=>$vo['id']))}" target="_blank" class="detail-btn">暂停中</a></case>
                                                <case value="3"><a href="javascript:;" class="detail-btn btn-over">暂停中</a></case>
                                            </switch>
                                        </div>
                                    </div>
                                </div>
                            </volist>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</block>
